/**
 * 
 */
$(initDoneTask());
function initDoneTask() {
	$
			.ajax({
				type : "post",
				url : "GetCoopTaskServlet",
				data : {
					projID : projID,
					tyle : '结束',
					task_id : ''
				},
				dateType : "json",
				success : function(data) {
					var jsondata = eval('(' + data + ')');
					var tasknode;
					tasknode = $("#page-completed-todos");
					$
							.each(
									jsondata.taskArray,
									function(n, v) {
										tasknode.append("<div class=\"day\" data-date=\"\">"
												+ "<div class=\"hd\">"
												+ "<span class=\"m-d\">"+v.etime+"</span> <span class=\"w\"></span>"
												+ "</div>"
												+ "<div class=\"bd\">"
												+ "<h6 class=\"name\">"
												+ "<span class=\"todolist\"></span>"
												+ "</h6>"
												+ "<ul class=\"todolist list\">"
												+ "<li class=\"todo completed\"><span class=\"todo-content\">"
												+ "<a href=\"../communication/cooptaskc.html?task_id="+v.ID+"\" class=\"todo-rest\" data-stack=\"true\" title=\""+v.Name+"\">"+v.Name+"</a>"
												+ "</span> <small><a href=\"../communication/cooptaskc.html?task_id="+v.ID+"\" data-stack=\"\" data-stack-root=\"\">执行： "+v.eName+"</a></small></li>"
												+ "</ul></div></div>");
									});

				},
				error : function() {
					// TODO do something

				}
			});
}